package com.codedancer.campus.client.api.user.ro;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import lombok.Data;

@Data
@ApiModel("用户登录Ro")
public class UserLoginRo {

    @ApiModelProperty("手机号")
    @NotEmpty(message = "请输入手机号")
    @Pattern(regexp = "^(((1[0-9][0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\\d{8})$", message = "手机号格式错误")
    private String phone;

    @ApiModelProperty("验证码")
    @NotEmpty(message = "验证码为空")
    private String code;
}
